(function(modules){
    function require(id){
        const {fn, mapping} = modules[id]
        const module = {
            exports:{}
        }
        //转换filePath ==> id
        function localRequire(filePath){
            const id= mapping[filePath]
            return require(id)
        }
        fn(localRequire, module, module.exports)
        return module.exports
    }
    require('0')
})({
    <% data.forEach(info=>{ %>
        "<%- info["id"] %>":[function(require, module, exports){
           <%- info["code"] %>
        }, <%- JSON.stringify(info["mapping"])  %>], 
        <% }); %>
})